package com.zwb.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zwb.boot.entity.ShoppingCart;

import java.util.List;

/**
 * @author 头发又黑又长
 * @Date 2022/7/26 10:28
 * @email zwb15083976291@163.com
 */
public interface ShoppingCartService extends IService<ShoppingCart> {
    ShoppingCart findByUserIdWithDishIdOrSetmealId(ShoppingCart shoppingCart);

    /**
     * 根据 用户id 查询 购物车
     *
     * @param id
     * @return
     */
    List<ShoppingCart> listByUserId(Long id);
}
